import { Component } from "react";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";

import Dashboard from "./components/Dashboard";
import Index from "./components/Index";
import Audit from "./external/Audit";

class App extends Component {
    render() {
        return (
            <Router>
                <Switch>
                    <Route path="/" exact component={Index} />
                    <Route path="/dashboard" component={Dashboard} />
                </Switch>

                <Route path="/audit" component={Audit}/>
            </Router>
        );
    }
}

export default App;
